<?php

/**
 * MVM_MALL 网上商店系统 缺货商品登记
 * ============================================================================
 * 版权所有 (C) 2007-2010 www.mvmmall.com，并保留所有权利。
 * 网站地址: http://www.mvmmall.com
 * ----------------------------------------------------------------------------
 * 这是一个免费开源的软件；这意味着您可以在不用于商业目的的前提下对程序代码
 * 进行修改、使用和再发布。
 * ============================================================================
 * $Author:  www.mvmmall.com  $
 * $Date: 2008-06-28 $
 * $Id: lackcheck.php  www.mvmmall.com$
 * ---------------------------------------------
*/

require_once './include/common.inc.php';
require_once MVMMALL_ROOT.'./include/captcha.class.php';
if ($mode=='lackwrite' && $_POST){
	if ($mm_other_code==1){
		$Captcha   = new  Captcha();
		$code      = trim($code);
		!$Captcha->CheckCode($code) && show_msg('code_wrong');
	}
	$conter         = nl2br(strip_tags($conter));
	$goods_category = dhtmlchars($goods_category);
	$title          =  dhtmlchars($title);
	$name           =  dhtmlchars($name);
	$brand          =  dhtmlchars($brand);
	$db->query("INSERT INTO `{$tablepre}enrol_table`  (goods_category,title,brand,name,tel,tel2,email,conter,regdate)
                 VALUES('$goods_category','$title','$brand','$name','$tel','$tel2','$email','$conter','$m_now_time')");
	show_msg('lackcheck_ok','./');
	exit;
} else {
	$navigation    = make_navigation($lang['book_in'],GetBaseUrl('lackcheck'));//导航
	$category_list = cat_menu('goods_category');
	require_once MVMMALL_ROOT.'header.php';
	require_once template('lackcheck');
	footer();
}
